package cn.saltice.idempotence.idem.distributed;

import cn.saltice.idempotence.idem.warpper.IdempotentRunnable;
import cn.saltice.idempotence.idem.warpper.IdempotentSupplier;

import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;

/**
 * @program: idempotence
 * @description: mysql
 * @author: Mr.Liu
 * @create: 2020-10-04 20:04
 **/
public class DistributedLockMysql implements DistributedLock{

    @Override
    public <T> T lock(String key, int waitTime, int leaseTime, IdempotentSupplier<T> success, IdempotentSupplier<T> fail) {
        return null;
    }

    @Override
    public <T> T lock(String key, int leaseTime, IdempotentSupplier<T> success, IdempotentSupplier<T> fail) {
        return null;
    }

    @Override
    public <T> T lock(String key, int leaseTime, TimeUnit timeUnit, IdempotentSupplier<T> success, IdempotentSupplier<T> fail) {
        return null;
    }

    @Override
    public void lock(String key, int waitTime, int leaseTime, IdempotentRunnable success, IdempotentRunnable fail) {

    }

    @Override
    public void lock(String key, int leaseTime, IdempotentRunnable success, IdempotentRunnable fail) {

    }

    @Override
    public void lock(String key, int leaseTime, TimeUnit timeUnit, IdempotentRunnable success, IdempotentRunnable fail) {

    }
}
